package guda.stark.dal.dao;

import guda.stark.dal.dataobject.AdminDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface AdminDAO {


    Long insert(AdminDO admin);


    AdminDO getAdminById(Long adminId);


    boolean delAdminById(Long adminId);

    List<AdminDO> getAdminByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long adminId);

    List<AdminDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(AdminDO admin);

    AdminDO selectByUser(String username,String password);

}
